package com.franklin.ideaplugin.mybatisrunner.utils;


import com.github.vertical_blank.sqlformatter.SqlFormatter;

/**
 * @author Ye Junhui
 * @since 2024/2/23
 */
public class SqlUtils {

    public static String format(String sql){
        try {
            return SqlFormatter.format(sql);
        } catch (Exception e) {
            e.printStackTrace();
            return sql;
        }
    }
}
